package com.itheima.d18_extends_demo;

public class Cat extends Animal{
    @Override
    public void eat() {
        System.out.println(getName() + "在吃饭~~~~");
    }

    @Override
    public void work() {
        System.out.println(getName() + "在抓老鼠~~~~");
    }
}
